﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClassLibrary.Data;
using System.Data;
using ClassLibrary.Entity;

namespace ClassLibrary.DAO
{
    public class TblTypeNoidungDAO
    {
         private DBService _db = null;

         public TblTypeNoidungDAO(String connectionString)
        {
            _db = new DBService(connectionString);
        }
        public bool InsUpdItem(TblNoidung noidung, int mode)
        {
            bool flag = false;
            try
            {
               
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return flag;
        }

        public DataTable GetTypeNoiDung()
        {
            DataTable dt = null;
            dt = _db.ExeSP_DataTable("select * from TblTypeNoidung", false, CommandType.Text);
            return dt;
             
        }
    }
}
